package com.cssy.xxkj.logic.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.transaction.annotation.Transactional;

import com.cssy.base.service.IBaseService;
import com.cssy.xxkj.logic.entity.LogicProductionDispatchingDO;
import com.cssy.xxkj.logic.entity.LogicProductionDispatchingItemDO;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;

public interface ILogicProductionDispatchingService  extends IBaseService<LogicProductionDispatchingDO>{
    /**
     * 查询生产派工ITEM
     */
	public List<LogicProductionDispatchingItemDO> findDispatItemList(String planId) throws SyBaseException;
	
	/**
	 * 查询生产派工的item
	 * @param scs
	 * @return
	 * @throws SyBaseException
	 */
	public List<LogicProductionDispatchingItemDO> findItemListByExample(SearchConditions scs)throws SyBaseException;
	
	/**
	 * 保存
	 * @param request
	 * @param curAP
	 * @throws SyBaseException
	 */
	@Transactional
	public void dispatSave(HttpServletRequest request,LogicProductionDispatchingDO curAP)throws SyBaseException;
	
	/**
	 * 关联查询 
	 * @param scs
	 * @return
	 * @throws SyBaseException
	 */
	public SearchResult findDispatchingDetailBySCS(SearchConditions scs)throws SyBaseException;
	
	public SearchResult findDispatchingDetailToSum(SearchConditions scs)throws SyBaseException;
	
	public void deleteBizRemovedBySaleId(String backSaleId)throws SyBaseException;
	
	/**
	 * 生产报表中 SearchConditions 不可以order 和group
	 * @param scs
	 * @return
	 * @throws SyBaseException
	 */
	public SearchResult findCollectDispatchingDetailBySCS(SearchConditions scs)throws SyBaseException;
	
	
}
